home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / checklst.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  4.4 KB  |  135 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'checklst.pas' rev: 3.00
  6.  
  7. #ifndef checklstHPP
  8. #define checklstHPP
  9. #include <Menus.hpp>
  10. #include <Forms.hpp>
  11. #include <StdCtrls.hpp>
  12. #include <Controls.hpp>
  13. #include <Graphics.hpp>
  14. #include <Classes.hpp>
  15. #include <SysUtils.hpp>
  16. #include <Messages.hpp>
  17. #include <Windows.hpp>
  18. #include <SysInit.hpp>
  19. #include <System.hpp>
  20.  
  21. //-- user supplied -----------------------------------------------------------
  22.  
  23. namespace Checklst
  24. {
  25. //-- type declarations -------------------------------------------------------
  26. class DELPHICLASS TCheckListBox;
  27. class PASCALIMPLEMENTATION TCheckListBox : public Stdctrls::TCustomListBox 
  28. {
  29.     typedef Stdctrls::TCustomListBox inherited;
  30.     
  31. private:
  32.     bool FAllowGrayed;
  33.     int FStandardItemHeight;
  34.     Classes::TNotifyEvent FOnClickCheck;
  35.     Classes::TList* FSaveStates;
  36.     HIDESBASE MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
  37.     HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
  38.     void __fastcall ResetItemHeight(void);
  39.     void __fastcall DrawCheck(const Windows::TRect &R, Stdctrls::TCheckBoxState AState);
  40.     void __fastcall SetChecked(int Index, bool Checked);
  41.     bool __fastcall GetChecked(int Index);
  42.     void __fastcall SetState(int Index, Stdctrls::TCheckBoxState AState);
  43.     Stdctrls::TCheckBoxState __fastcall GetState(int Index);
  44.     void __fastcall ToggleClickCheck(int Index);
  45.     void __fastcall InvalidateCheck(int Index);
  46.     System::TObject* __fastcall CreateWrapper(int Index);
  47.     System::TObject* __fastcall ExtractWrapper(int Index);
  48.     System::TObject* __fastcall GetWrapper(int Index);
  49.     bool __fastcall HaveWrapper(int Index);
  50.     
  51. protected:
  52.     virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, Stdctrls::TOwnerDrawState State
  53.         );
  54.     DYNAMIC void __fastcall SetItemData(int Index, int AData);
  55.     DYNAMIC int __fastcall GetItemData(int Index);
  56.     DYNAMIC void __fastcall KeyPress(char &Key);
  57.     DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, 
  58.         int Y);
  59.     DYNAMIC void __fastcall ResetContent(void);
  60.     DYNAMIC void __fastcall DeleteString(int Index);
  61.     DYNAMIC void __fastcall ClickCheck(void);
  62.     virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
  63.     virtual void __fastcall CreateWnd(void);
  64.     virtual void __fastcall DestroyWnd(void);
  65.     int __fastcall GetCheckWidth(void);
  66.     
  67. public:
  68.     __fastcall virtual ~TCheckListBox(void);
  69.     __property bool Checked[int Index] = {read=GetChecked, write=SetChecked};
  70.     __property Stdctrls::TCheckBoxState State[int Index] = {read=GetState, write=SetState};
  71.     
  72. __published:
  73.     __property Classes::TNotifyEvent OnClickCheck = {read=FOnClickCheck, write=FOnClickCheck};
  74.     __property Align ;
  75.     __property bool AllowGrayed = {read=FAllowGrayed, write=FAllowGrayed, default=0};
  76.     __property BorderStyle ;
  77.     __property Color ;
  78.     __property Columns ;
  79.     __property Ctl3D ;
  80.     __property DragCursor ;
  81.     __property DragMode ;
  82.     __property Enabled ;
  83.     __property Font ;
  84.     __property ImeMode ;
  85.     __property ImeName ;
  86.     __property IntegralHeight ;
  87.     __property ItemHeight ;
  88.     __property Items ;
  89.     __property ParentColor ;
  90.     __property ParentCtl3D ;
  91.     __property ParentFont ;
  92.     __property ParentShowHint ;
  93.     __property PopupMenu ;
  94.     __property ShowHint ;
  95.     __property Sorted ;
  96.     __property Style ;
  97.     __property TabOrder ;
  98.     __property TabStop ;
  99.     __property TabWidth ;
  100.     __property Visible ;
  101.     __property OnClick ;
  102.     __property OnDblClick ;
  103.     __property OnDragDrop ;
  104.     __property OnDragOver ;
  105.     __property OnDrawItem ;
  106.     __property OnEndDrag ;
  107.     __property OnEnter ;
  108.     __property OnExit ;
  109.     __property OnKeyDown ;
  110.     __property OnKeyPress ;
  111.     __property OnKeyUp ;
  112.     __property OnMeasureItem ;
  113.     __property OnMouseDown ;
  114.     __property OnMouseMove ;
  115.     __property OnMouseUp ;
  116.     __property OnStartDrag ;
  117. public:
  118.     /* TCustomListBox.Create */ __fastcall virtual TCheckListBox(Classes::TComponent* AOwner) : Stdctrls::
  119.         TCustomListBox(AOwner) { }
  120.     
  121. public:
  122.     /* TWinControl.CreateParented */ __fastcall TCheckListBox(HWND ParentWindow) : Stdctrls::TCustomListBox(
  123.         ParentWindow) { }
  124.     
  125. };
  126.  
  127. //-- var, const, procedure ---------------------------------------------------
  128.  
  129. }    /* namespace Checklst */
  130. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  131. using namespace Checklst;
  132. #endif
  133. //-- end unit ----------------------------------------------------------------
  134. #endif    // checklst
  135.